package cn.java83mp.mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * <p>
 * 买课记录
 * </p>
 *
 * @author baomidou
 * @since 2023-09-19
 */
@TableName("buyhistory")
public class Buyhistory implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long courseid;

    private Long userid;

    private LocalDateTime buydate;

    private Integer price;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCourseid() {
        return courseid;
    }

    public void setCourseid(Long courseid) {
        this.courseid = courseid;
    }

    public Long getUserid() {
        return userid;
    }

    public void setUserid(Long userid) {
        this.userid = userid;
    }

    public LocalDateTime getBuydate() {
        return buydate;
    }

    public void setBuydate(LocalDateTime buydate) {
        this.buydate = buydate;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Buyhistory{" +
            "id = " + id +
            ", courseid = " + courseid +
            ", userid = " + userid +
            ", buydate = " + buydate +
            ", price = " + price +
        "}";
    }
}
